package com.pcbly.web.components.views.jsp.ui;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.Component;
import org.apache.struts2.views.jsp.ui.HeadTag;

import com.opensymphony.xwork2.util.ValueStack;
import com.pcbly.web.components.views.jsp.ExtHead;

public class ExtHeadTag extends HeadTag {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1065700599652160625L;
	protected String adapter;
	protected String debug;
	protected String extLocation;
	protected String themes;
	protected String locale;
	protected String msgTarget;
	protected String smProvider;
	public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new ExtHead(stack, req, res);
    }
	
	protected void populateParams() {
        super.populateParams();
        ExtHead head=(ExtHead)component;
        head.setAdapter(adapter);
        head.setDebug(debug);
        head.setExtLocation(extLocation);
        head.setLocale(locale);
        head.setMsgTarget(msgTarget);
        head.setSmProvider(smProvider);
        head.setThemes(themes);
	}

	public String getAdapter() {
		return adapter;
	}

	public void setAdapter(String adapter) {
		this.adapter = adapter;
	}

	public String getDebug() {
		return debug;
	}

	public void setDebug(String debug) {
		this.debug = debug;
	}

	public String getExtLocation() {
		return extLocation;
	}

	public void setExtLocation(String extLocation) {
		this.extLocation = extLocation;
	}

	public String getThemes() {
		return themes;
	}

	public void setThemes(String themes) {
		this.themes = themes;
	}

	public String getLocale() {
		return locale;
	}

	public void setLocale(String locale) {
		this.locale = locale;
	}

	public String getMsgTarget() {
		return msgTarget;
	}

	public void setMsgTarget(String msgTarget) {
		this.msgTarget = msgTarget;
	}

	public String getSmProvider() {
		return smProvider;
	}

	public void setSmProvider(String smProvider) {
		this.smProvider = smProvider;
	}
	
}
